package com.BEASTMODE.libs;

import com.BEASTMODE.libs.BaseState;
import android.view.MotionEvent;

public class StateManager
{
	private BaseState currentState;
	
	public void ChangeState(BaseState newState)
	{
		if(currentState != null)
		{
			currentState.Exit();
		}
		
		currentState = newState;
		
		if(currentState != null)
		{
			currentState.Enter();
		}		
	}
	public boolean Update(float fDeltaTime)
	{
		return currentState.Update(fDeltaTime);
		
	}

	public void AddInput(MotionEvent event)
	{
	
	}
	
	public void HandleInput()
	{
	
		
	}
}